package com.skyolder.milkbee.repository;

import com.skyolder.milkbee.domain.Stranger;

import org.springframework.data.jpa.repository.*;

import java.util.List;

/**
 * Spring Data JPA repository for the Stranger entity.
 */
@SuppressWarnings("unused")
public interface StrangerRepository extends JpaRepository<Stranger,Long> {
	@Query("from Stranger s where s.forbidden=true and s.categoryId in (?1) ")
	List<Stranger> doQueryByCategoryId(List<Long> categoryIds);

	List<Stranger> findByCategoryIdAndLeaguerIdAndForbiddenTrue(Long categoryId, Long leaguerId);

}
